file chooser: Also apply the settings
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Dec 2015 17:25:31 +0000 (12:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 11 Dec 2015 17:25:31 +0000 (12:25 -0500)
I forgot that the settings object we're dealing with here
is in delay mode, so settings won't apply immediately.

gtk/gtkfilechooserdialog.c

index 5be8edc359d4270997f98b31656ffab961aa608f..92cd00a1a0c81e8df1d2fcb899564bbcb8be17b5 100644 (file)
@@ -643,6 +643,8 @@ save_dialog_geometry (GtkFileChooserDialog *dialog)
   g_settings_get (settings, SETTINGS_KEY_WINDOW_SIZE, "(ii)", &old_width, &old_height);
   if (old_width != width || old_height != height)
     g_settings_set (settings, SETTINGS_KEY_WINDOW_SIZE, "(ii)", width, height);
+
+  g_settings_apply (settings);
 }
 
 static void